﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="fm" uri="http://www.springframework.org/tags/form"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>
<div class="right">
	<div class="location">
		<strong>你现在所在的位置是:</strong> <span>会议室管理页面 >> 会议室添加页面</span>
	</div>
	<div class="providerAdd">
		<!-- 请在此处添加新增数据表单 -->
		<fm:form id="roomForm" method="post" modelAttribute="room">
			<input type="hidden" name="method" value="add">
			<!--div的class 为error是验证错误，ok是验证成功-->

			<div>
				<label for="name">会议室名称：</label>
				<fm:input path="name" id="name"/>
				<font color="red"></font>
				<fm:errors path="name" cssStyle="color:red"/>
			</div>
			<div>
				<label for="location">会议室位置：</label>
				<fm:input path="location" id="location"/>
				<font color="red"></font>
				<fm:errors path="location" cssStyle="color:red"/>
			</div>
			<div>
				<label for="number">容纳数量：</label>
				<fm:input path="number" />
				<font color="red"></font>
				<fm:errors path="number" cssStyle="color:red"/>
			</div>
			<div>
				<label for="description">会议室描述：</label>
				<fm:textarea path="description"/>
				<font color="red"></font>
				<fm:errors path="description" cssStyle="color:red"/>
			</div>
			<div>
                <label>会议室状态：</label>
				<input type="radio" name="status" value="1" checked>可用
				<input type="radio" name="status" value="0">不可用

				<font color="red"></font>
			</div>
			<div class="providerAddBtn">
				<input type="button" name="add" id="add" value="保存">
				<input type="button" id="back" name="back" value="返回">
			</div>
		</fm:form>
	</div>
</div>
</section>
<%@include file="/WEB-INF/jsp/common/foot.jsp"%>
<!-- 请注意更新JS脚本路径 -->
<script type="text/javascript" 
	src="${pageContext.request.contextPath }/statics/js/roomadd.js"></script>

